﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_Perm_List.aspx.cs"
    Inherits="Web.admin_Perm_List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>权限列表</title>

    <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
 <link href="css/Page.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #contentPop ul
        {
            width: 100%;
            height: 30px;
            float: left;
            display: block;
            margin-left: 2px;
        }
        #contentPop ul li
        {
            list-style-type: none;
            float: left;
            display: inline;
        }
      
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="border: 1px solid #9abddd;" border="0" cellpadding="0"
            cellspacing="0" width="98%">
            <tr>
                <td colspan="2" class="TitleBar" align="center" onclick="hiddenShowDiv('contentPop');">
                    权限列表管理
                </td>
            </tr>
            <tr>
                <td class="ItemName" colspan="2">
                    <input type="checkbox" value="-222" onclick="selectAll(this.form,this.checked);" />全选
                </td>
            </tr>
            <tr>
                <td class="ItemNameBottom" colspan="2">
                    <div id="contentPop" runat="server" /></div>
                </td>
            </tr>
            <tr>
                <td align="center" class="Pager" colspan="2">
                    <asp:Button ID="btn_ok" runat="server" OnClick="btn_ok_Click" Text="保存" />
                     <asp:Button ID="btn_back" runat="server"  Text="返回列表" 
                        onclick="btn_back_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript">
    function UnDo() {
        if (confirm('你确定要取消所做的更改吗?')) {
            document.form1.reset();
        }
    }

    function hiddenShowDiv(id) {
        var objs = document.getElementById(id);
        if (objs.style.display == "") {
            objs.style.display = "none";
        }
        else {
            objs.style.display = "";
        }
    }



    function selectAll(f, mode) {
        if (mode == true) {
            for (i = 0; i < f.length; i++) {
                if (f.elements[i].type == "checkbox") {
                    f.elements[i].checked = true;
                }
            }
        }
        else {
            for (i = 0; i < f.length; i++) {
                if (f.elements[i].type == "checkbox") {
                    f.elements[i].checked = false;
                }
            }
        }
    }
</script>

